From 434badf2d47082916c86b662202538e0bfd990df Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Mon, 13 Feb 2006 10:19:14 +0100 Subject: [PATCH] Clean up vmxassist/setup.c. It is no longer necessary to switch to an alternate page table before entering the real-mode emulator. Signed-off-by: Xin B Li Signed-off-by: Leendert van Doorn --- tools/firmware/vmxassist/setup.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tools/firmware/vmxassist/setup.c b/tools/firmware/vmxassist/setup.c index c4fcbb6846..25e5abd146 100644 --- a/tools/firmware/vmxassist/setup.c +++ b/tools/firmware/vmxassist/setup.c @@ -353,8 +353,6 @@ setup_ctx(void) void start_bios(void) { - unsigned long cr0; - if (booting_cpu == 0) printf("Start BIOS ...\n"); else @@ -362,11 +360,7 @@ start_bios(void) booting_cpu, booting_vector << 12); initialize_real_mode = 1; - cr0 = get_cr0(); -#ifndef TEST - set_cr0(cr0 | CR0_PE); -#endif - set_cr0(cr0 & ~CR0_PE); + set_cr0(get_cr0() & ~CR0_PE); panic("vmxassist returned"); /* "cannot happen" */ } -- 2.30.2